-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update did:jwk
resolve test vectors
#69
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a comment (non blocking) - I would recommend adding vectors for all the key type/algs we support. I've run into issues by assuming these work and realizing much later they in fact don't. Forcing compatibility with each support key type here will prevent that risk.
great point @decentralgabe we should definitely do that. will update the PR to reflect |
Great point. One thing to note is that we're not yet at a point of consistent support for crypto algs across the
We could always expand the |
I thought that would be part of creation, but I believe this PR is only for resolution |
It is but this PR's resolution results are based on not-canonicalizing the public key. As a result, if a |
I'm a bit confused still, hoping you can help me understand. Are you suggesting that resolution should canonicalize the encoded JWK before putting it in the did document? I.e. something like the following
|
Canonicalization was removed from the latest draft, so I would advise against it https://github.com/quartzjer/did-jwk/pull/21/files |
Excellent insight! Thanks @decentralgabe. Makes the decision easy. |
updated vectors to include supported cryptographic algorithms - |
README
to describe inputs and outputs ofdid:jwk
test vectorsdidResolutionResult
from output. Inclusion of this property left room to believe that theresolve
implementations should contain a literaldidResolutionResult
propertydidDocumentMetadata
to output where missing. Note: on success, this will always be an empty object fordid:jwk
didResolutionMetadata
to output where missing. Note: on success, this will always be an empty object fordid:jwk